package oop_abstract.demo2;

public class Dog extends Animal implements Swim{
    public Dog(){};
    public Dog(String name,int age){
        super(name, age);
        Swim.drink();
    }
    @Override
    public void eat(String something){
        System.out.println("狗在吃" + something);
    }
    @Override
    public void swim(){
        System.out.println("狗在狗刨");
    }
    
}
